#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
using namespace std;
void print(int n, char c)
{
    while (n--)
        cout << c;
}
int main()
{
    int n; char c;
    while (cin >> n >> c)
    {
        int a[20][20];
        a[0][0] = 1;
        for (int i = 0; i < n; i++)
        {
            for (int j = 0; j <= i; j++)
            {
                if (j == 0 || j == i)a[i][j] = 1;
                else a[i][j] = a[i - 1][j - 1] + a[i - 1][j];
            }
        }
        for (int k = 0; k < n; k++)
        {
            for (int i = k; i < n; i++)
            {
                print(a[i][i - k], c);
                if (i != n - 1)cout << " ";
            }
            cout << endl;
        }
    }
    return 0;
}
